package com.bdqn.S64.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/teacher")
public class TeacherController {

    @GetMapping("/test")
    public String test(){
        return "I am teacher";
    }


    @GetMapping("add")
    public String add(){
        return "添加教师成功";
    }

    @GetMapping("del")
    public String del(){
        return "删除教师成功";
    }

    @GetMapping("update")
    public String update(){
        return "修改教师成功";
    }
}
